import request from '@/utils/request'

let url = "/spring-cloud-authorization";

export function login(username, password) {
    return request({
        url: url + '/employee-login/login',
        method: 'get',
        params: {
            username,
            password
        }
    })
}

export function getInfo(token) {
    return request({
        url: url + '/employee-login/info',
        method: 'get',
        params: {token}
    })
}

export function getUserNameAll() {
    return request({
        url: url + '/employee-login/getUserNameAll',
        method: 'get'
    })
}

export function logout() {
    return request({
        url: url + '/user/logout',
        method: 'post'
    })
}
